import Api from 'Api/index';
import appConfig from 'AppConfig/index';
import * as common from "Commons/index";
import globalBehavior from 'Behaviors/global';
Page({
    behaviors: [globalBehavior],
	data: {
        quickList: [
            {
                key: 'caipiao',
                name: 'cloub-超级大乐透',
                icon: 'coupon-o',
                show: false,
                needLogin: true,
                url: '/package/pages-caipiao/index/index',
            },{
                key: 'caipiao',
                name: 'cloub-福彩3D',
                icon: 'coupon-o',
                show: false,
                needLogin: true,
                url: '/package/pages-caipiao/3d/3d',
            },{
                key: 'caipiao',
                name: 'cloub-双色球',
                icon: 'coupon-o',
                show: false,
                needLogin: true,
                url: '/package/pages-caipiao/2ball/2ball',
            },{
                key: 'caipiao',
                name: 'cloub-快乐8',
                icon: 'coupon-o',
                show: false,
                needLogin: true,
                url: '/package/pages-caipiao/kl8/kl8',
            }
        ],
	},
	onLoad(options) {

	},
    quickItemClick(event) {
        const { index } = event.currentTarget.dataset;
        const item = this.data.quickList[index];
        if (item && item.name == '评价') {
            this.wxacommentplugin();
        } else {
            wx.navigateTo({
                url: item.url,
            });
        }
    },
})